package question1;

/**
 * 	Classe d'execution de la question 1.
 * 	@author Jacquemin Thibault
 * 	@author Marleix Mathieu
 */
public class Main2
{

  public static void main( String[] args ) throws Exception
  {
    HTTPSensor.setHttpProxy( "cache.esiee.fr", 3128 );
    HTTPSensor ds2438= null;
    if ( args.length == 0 )
      ds2438= new HTTPSensor();
    else
      ds2438= new HTTPSensor( args[0] );

    CyclicAcquisition acquisition= new CyclicAcquisition(ds2438, ds2438.minimalPeriod(), new ConsoleCommand<Float>());

    acquisition.start();
    Thread.sleep(2000);
    acquisition.stop();
  } // main()
} // Main2
